FUNCTION
parse_fee_assets
function parse_fee_assets(gtv: gtv, module_name: text): list<fee_asset>Parses the module_args for a module, where the value contained is a list of fee_assets.
Throws "CONFIG ERROR" if gtv is neither a dictionary nor a list of dictionaries.
Throws if any of the assets is not a valid fee_asset.
Parameters
- gtv — the
module_argsfor the module that is being parsed - module_name — the name of the module for better errors
Returns
the parsed values
See Also
- fee_asset — for a definition of invalid values.
© 2024 Chromia